
__author__ = 'Administrator'
from selenium import webdriver
from selenium.webdriver.common.by import By
url = 'http://v.qq.com/cover/q/qviv9yyjn83eyfu/u0016gbvtgc.html'
# driver = webdriver.PhantomJS()
# driver.get(url)

driver = webdriver.Firefox()
driver.get(url)

_embeds = driver.find_elements_by_tag_name('embed')
for k in _embeds:
    print(k.text)
    print(k.id)
    print(k.get_attribute('src'))




# print(firefox.page_source)

# data = driver.find_element_by_id('cp').text
# print(driver.page_source)


